﻿#region itdc

/************************************************************************
*Copyright(C) 2015 by qsgy
 *All rights reserved. 
 *FileName:     $safeitemname$
 *Author:       oyh
 *Version:      
 *UnityVersion：
 *Date:   $time$      
 *Description:    
 *History: 
************************************************************************/
#endregion
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CantControl : NextRunner{

	void Start () {
        if (GameManager.Instance!=null)
            GameManager.Instance.PlayerControl.enabled = false;
    }
    private void OnDisable()
    {
        if (GameManager.Instance != null)
            if (GameManager.Instance.PlayerControl != null)
                GameManager.Instance.PlayerControl.enabled = true;
    }
}
